package com.example.speeddating.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

/**
 *
 * @author tina
 * @since 2023-08-14 10:32:59
 */
@Getter
@Setter
public class Blacklist implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用户id
     */
    private Long blackUserId;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private Date createTime;


    /**
     * 是否移除
     */
    @TableLogic
    @JsonIgnore
    private Integer deleted;

    @TableField(exist = false)
    private User user;

    @TableField(exist = false)
    private User blackUser;

}
